package com.binary.coder.gift.core.infrastructure.po.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.binary.coder.gift.core.common.bean.MapDict;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("bs_sys_c_api_sql")
public class SysApiSql implements Serializable {

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("分类")
    @TableField("type")
    private String type;

    @ApiModelProperty("编码")
    @TableField("code")
    private String code;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("是否分页接口")
    @TableField("page")
    private int page;

    @ApiModelProperty("是否xml脚本")
    @TableField("script")
    private int script;

    @ApiModelProperty("查询的sql语句")
    @TableField("select_sql")
    private String selectSql;

    @ApiModelProperty("参数列表")
    @TableField("param")
    private String param;

    @ApiModelProperty("结果列")
    @TableField("cell")
    private String cell;

    @ApiModelProperty("结果显示别名")
    @TableField("cell_alias")
    private MapDict cellAlias;

    @ApiModelProperty("流程描述")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("状态")
    @TableField("data_status")
    private Integer dataStatus;


}
